package com.itheima.mapper;

import com.itheima.pojo.UserInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository//要不要都行，扫描器已经做了，添加到ioc容器里了
public interface UserMapper {

    @Select("select * from userInfo where id=#{id}")
    UserInfo findById(int id);
    @Select("select * from userInfo")
    List<UserInfo> findAll();
}
